/**
 * 
 */
package com.evon.yardmanagement.service;

import java.util.List;

import com.evon.yardmanagement.dao.ActionDAO;
import com.evon.yardmanagement.dao.UserDAO;
import com.evon.yardmanagement.model.Action;
import com.evon.yardmanagement.model.Oem;
import com.evon.yardmanagement.model.Role;
import com.evon.yardmanagement.model.User;
import com.evon.yardmanagement.model.User_Role;

/**
 * @author Sandeep
 *
 */
public class UserManagementService implements IUserManagementService {

	UserDAO userDao = new UserDAO();
	
	public List<User> getAllUsers() {
		// TODO Auto-generated method stub
		return userDao.findAll();
	}

	public List<User> getUserForCompany(int companyId){
		return userDao.geUsers(companyId);
		
	}
	public List<User> getSpecificUsers(int userId){
		return userDao.getSpecificUsers(userId);
	}
	public void save(List<User_Role> roles){
		for (User_Role role: roles ) {
		userDao.save(role);
		}
	}
}
